/*
 * @Description: 告警联系人管理
 */
import axiosData from "@/api/axios";
export default {
  /**
   * @description: 获取告警联系人表格 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   */
  getlist(params) {
    return axiosData.post("/v3/agricultural-equipment/alarmContact/queryPageList", {
      ...params,
      entity: {
        "system": "SC"
      }
    });
  },
  /**
   * @description: 添加
   * @param {Object}  *
   */
  addlist(params) {
    return axiosData.post('/v3/agricultural-equipment/alarmContact/add', {
      ...params,
      "system": "SC",
      "organizationId": sessionStorage.getItem("organizationId")
    });
  },
  /**
   * @description: 批量删除
   * @param {Object}  *
   */
  dellist(params) {
    return axiosData.post('/v3/agricultural-equipment/alarmContact/delList', {
      'alarmContactIdList': params
    });
  },
  /**
   * @description: 修改
   * @param {Object}  *
   */
  editlist(params) {
    return axiosData.post('/v3/agricultural-equipment/alarmContact/edit', {
      ...params,
      "system": "SC"
    });
  },
  /**
   * @description: 条件查询
   * @param {Object}  *
   */
  querybycondition(params) {
    return axiosData.post('/v3/agricultural-equipment/alarmContact/queryByCondition', {
      ...params,
      "system": "SC"
    });
  }
};
